package com.sdgakj.foton.cloud.dictionary.feign;

import com.sdgakj.foton.cloud.dictionary.bean.Province;
import com.sdgakj.foton.cloud.dictionary.hystrix.HystricxProvinceClientConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @Author: Du Ronghong
 * @Description:
 * @Date: Created in 15:25 2018/7/12
 * @Modified By: 远程调用， 使用类作的方法作为容错的方法,也可以不使用容错方法
 */
@FeignClient(name = "AUCTION-SERVICE",configuration = HystricxProvinceClientConfiguration.class)
public interface ProvinceFeignClient {

    @RequestMapping(value = "/api/v1/province/list",method = RequestMethod.GET)
    public List<Province> getAll();
}
